package pages;

import org.apache.wicket.PageMap;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.markup.html.link.PopupSettings;
import org.apache.wicket.model.PropertyModel;

import pages.popup.CustomerLOVPages;


public class CreateCustInfo extends BasePage {

	private String custName;
	
	public CreateCustInfo(){
		Label lblCustomer = new Label("lblCustomer", new PropertyModel(this, "custName"));
		add(lblCustomer);
		
		PopupSettings popupSettings = new PopupSettings(PageMap.forName("popuppagemap")).setHeight(
                500).setWidth(500);
		BookmarkablePageLink lnkSelectCust = new BookmarkablePageLink("lnkSelectCust", CustomerLOVPages.class);
		lnkSelectCust.setPopupSettings(popupSettings);
		add(lnkSelectCust);
//		Ajax
	}

	public String getCustName() {
		return custName;
	}

	public void setCustName(String custName) {
		if(custName==null)
			custName = "";
		this.custName = custName;
	}
	
	
	
}
